package com.hotai.vo.usestudent;

import lombok.Data;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class UserStudentAccount {
    private  Integer id;
    @NotBlank(message ="姓名不能为空")
    @Size(max = 8 ,message = "长度不能大于8为汉字")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{0,}$",message = "只能是汉字")
    private  String name;
}
